#include "func.h"

int main(int argc, char const *argv[])
{
    Node_t * phead = NULL;
    creat_list(&phead);

    insert_list(phead, 40);
    insert_list(phead, 30);
    insert_list(phead, 20);
    insert_list(phead, 10);
    show_list(phead);

    insert_list_by_tail( phead, 60);
    insert_list_by_tail( phead, 70);
    insert_list_by_tail( phead, 80);
    insert_list_by_tail( phead, 90);
    show_list(phead);

    insert_list_by_position(phead, 100, 1);
    insert_list_by_position(phead, 101, 2);
    insert_list_by_position(phead, 102, 3);
    show_list(phead);


    delete_list_by_head(phead);
    show_list(phead);
    delete_list_by_tail(phead);
    show_list(phead);
    return 0;
}
